@SET STSADM_PATH="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm.exe" 
@SET FEATURE_PATH="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\Excel2XPS\Excel2XPS.exe" 
@SET WSP_LOCATION="C:\Documents and Settings\steinwnd\My Documents\Visual Studio 2005\Projects\Excel2XPS\Excel2XPS\Excel2XPS.wsp"
@SET WSP_FILENAME="Excel2XPS.wsp"
@SET FEATURE_NAME="Excel2XPS"
@SET SERVER_URL="https://moss-test.slac.stanford.edu/"
@SET WSP_CAB_DDF="C:\Documents and Settings\steinwnd\My Documents\Visual Studio 2005\Projects\Excel2XPS\Excel2XPS\Excel2XPS.ddf"
@SET TRANSFORMAPPS_PATH="D:\Program Files\Microsoft Office Servers\12.0\TransformApps"
@SET MAKECAB_PATH="C:\WINNT\system32\makecab.exe"


%MAKECAB_PATH% /f %WSP_CAB_DDF%
pause

%STSADM_PATH% -o addsolution -filename %WSP_LOCATION% 
pause

%STSADM_PATH% -o deploysolution -name %WSP_FILENAME% -immediate
pause


%STSADM_PATH% -o installfeature -name %FEATURE_NAME% -force
pause

%STSADM_PATH% -o activatefeature -name %FEATURE_NAME% -url %SERVER_URL% -force

pause

xcopy /Y %TRANSFORMAPPS_PATH% %FEATURE_PATH%

pause

